<template>
<el-container style="height: 1500px; border: 1px solid #eee">
    <el-aside width="200px">
    <el-menu :router="true" :default-openeds="['1']">
        <el-submenu index="1">
        <template slot="title"><i class="el-icon-setting"></i>菜单</template>
        <el-menu-item-group>
          <el-menu-item index="/adminlist">用户信息管理</el-menu-item>
          <el-menu-item index="/teafriendlist">茶友信息管理</el-menu-item>
          <el-menu-item index="/tealist">茶叶信息管理</el-menu-item>
          <el-menu-item index="/goodslist">订单信息管理</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-aside>
  <el-container>
    <el-header style="text-align: center; font-size: 20px">
      <span>茶友商城信息管理系统</span>
    </el-header>
    <el-main style="text-align: center; height: 500px;">
      <router-view></router-view>
    </el-main>

    <el-footer>chuyangc © 2022-9999 保留所有权利</el-footer>
  </el-container>
</el-container>
</template>

<script>
export default {
  name: 'app',
  data() {
      return {
      }
    }
}
</script>

<style>
#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
.el-header, .el-footer {
  background-color: #b3d1b7;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  height: 100%;
  background-color: #E9EEF3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  height: 100%;
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}

.el-header {
  background-color: #B3C0D1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
</style>
